package cn.lzy.profielconfig;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration //标识自定义类
@Profile("dev")//指定多环境配置类标识
public class DevDBConnector implements DBConnector{
    @Override
    public String config() {
        return "数据库配置环境dev,这是个开发环境！！";
    }
}
